package com.qidianit.mes.pro.controller;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Workflow;
import com.qidianit.mes.pojo.pro.WorkflowProcess;
import com.qidianit.mes.pro.service.WorkflowProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Description:
 * @ Author: 戴着假发的程序员
 * @ Date: 2025/9/22 - 15:36
 */
@RestController
@RequestMapping("/workflowProcess")
public class WorkflowProcessController {
    @Autowired
    private WorkflowProcessService workflowProcessService;

    @GetMapping("/page")
    public Result<PageInfo<WorkflowProcess>> list(WorkflowProcess workflowProcess, @RequestParam(defaultValue = "1")int page,@RequestParam(defaultValue = "10")int size){
        return workflowProcessService.selectList(workflowProcess.getWorkflowId(),page,size);
    }
}
